from django import forms
from .models import Material

class MaterialUploadForm(forms.ModelForm):
    class Meta:
        model = Material
        fields = ['material_type', 'file']
        widgets = {
            'material_type': forms.Select(attrs={'class': 'form-control'}),
            'file': forms.FileInput(attrs={'class': 'form-control'}),
        }